package com.cqc.jdk8.Jio.bytes.input;

import org.junit.Test;

import java.io.FileInputStream;

public class FileInputStreamTest {


    @Test
    public void f1() throws Exception {
        String filename = "C:\\Users\\cui\\Desktop\\fos2.csv";
        FileInputStream is = new FileInputStream(filename);
        int length ;
        byte[] bytes = new byte[1024];
        while ((length = is.read(bytes)) != -1){
            String s = new String(bytes);
//            System.out.println("s="+s);
            String[] split = s.split("\t");
            for (String s1 : split) {
                System.out.println(s1);
            }

        }
    }
}
